#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
#include"BSTree.h"

using namespace std;

void TestBSTree()
{
	BSTree<int> t1;
	int arr[] = { 8,3,1,10,6,4,7,14,13 };
	for (auto it : arr)
	{
		t1.insert(it);
	}
	t1.Inorder();

	//t1.Erase(3);
	//t1.Erase(8);
	
	for (auto it : arr)
	{
		t1.EraseR(it);
		t1.Inorder();
	}

}

void TestBSTree1()
{
	BSTree<int> t1;
	int arr[] = { 8,3,1,10,6,4,7,14,13 };
	for (auto it : arr)
	{
		t1.insert(it);
	}
	t1.Inorder();
	BSTree<int> t2 = t1;
	t2.Inorder();
}

int main()
{
	TestBSTree1();
	return 0;
}